package com.jia.springboot10test.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledService {

    @Scheduled(cron = "0/3 * * * * ?")
    public void test() {
        System.out.println("测试 定时方法 被执行了");
    }
}
